/**
 * author:Administrator
 * date:2016/2/24
 * desc:TODO
 */

'use strict';

var RepoImpl = require('../../../infrastructure/persist').CouponLogRepoImpl;

class CouponRepo {

  /**
   * return pojo
   * @param id
   * @returns {*}
   */
  static * find(id) {
    return yield RepoImpl.find(id);
  }

  static * update(where, updateAttr) {
    return yield  RepoImpl.update(where, updateAttr);
  }

  /**
   * @param customerCoupon
   * @param t transaction
   * @returns {*}
   */
  static * store(customerCoupon, t) {
    yield RepoImpl.store(customerCoupon, t);
  }

}

module.exports = CouponRepo;
